<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html lang="zh-CN" manifest="/misc/wei_cache_new.manifest">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="format-detection" content="telephone=no" />
<title>订单详情</title>
<link rel="stylesheet" type="text/css" href="${ctxStatic }/site/themes/FangChanMuBan/list.css" />
<script type="text/javascript">
function onBridgeReady(){
	 WeixinJSBridge.call('hideOptionMenu');
	}

	if (typeof WeixinJSBridge == "undefined"){
	    if( document.addEventListener ){
	        document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
	    }else if (document.attachEvent){
	        document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
	        document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
	    }
	}else{
	    onBridgeReady();
	}
</script>
</head>
<body>
<form class="p-submission" id="j-order-form-refresh" method="post" action="${ctxFront }/site/shopping/toPay">
<input type="hidden" name="user.id" value="${uid }">
<input type="hidden" name="uid" value="${uid }">
<input type="hidden" name="wechatId" value="${wechatId }">
<input type="hidden" name="address.id" value="${address.id }">
<input type="hidden" name="name" value="${product.name }">
<input type="hidden" name="product.id" value="${product.id }">
<input type="hidden" name="productNumber" value="${productNumber}">
<div class="address">
<a href="${ctxFront }/site/shopping/chooseAddressList?uid=${uid }&wechatId=${wechatId}&productId=${product.id}&productNumber=${productNumber}" > 
 <c:if test="${address ne null }">
 				 <div class="gwdz">
 				 <p>
				 <span>收货人：${address.name }</span>
				 <span class="shouji">${address.mobile }</span></p>
				 <span  >${address.province }&nbsp;${address.city }&nbsp;${address.county }&nbsp;${fn:substring(address.detail,0,9) }</span>
				 </div>
     </c:if>
      <c:if test="${address eq null }">
					<span  style=" color: #000;" >请设置您的设置地址</span>
     </c:if>

 </a>
</div>
<div class="gwlist">
  <div class="gwlist2"><h1>购物清单</h1><div class="gwxq"><em></em><b>￥${productNumber*product.price/100}元</b></div></div>
  <div class="gwlist3">
   <ul>
     <li><a href=""><img src="${ctxUser }/product/${product.indexPic}" style="height:122px;width:122px;" ></a>
      <div class="gwbt"  style="width: 50%;" >
       <h1>${product.name }</h1>
       <span class="price">￥${product.price/100 }</span><br/>
       <span class="num">数量${productNumber}个</span>
      </div>
     </li>
   </ul>
  </div>
 <div class="gwlist5"><h1></h1><div class="gwxq1"><strong></strong></div></div>
 <div class=""><input name="remarks" type="text" placeholder="备注" class="beizhu"></div>
 <div class="gwlist4"><h1>支付方式</h1></div>
</div>
 <div class="zhifu">
  <p>总共支付￥${productNumber*product.price/100}</p>
 </div>
 <div class="btn_wrap btn_wrap_fixed">
    <div class="btn_col">
    	<c:if test="${empty address.id }">
    <input class="btn btn_cart" value="立即支付" type="button" onclick="alert('请选择地址');" >
    </c:if>
    <c:if test="${not empty address.id}">
      <input class="btn btn_cart" value="立即支付" type="submit" >
    </c:if>
    </div>
</div>
</form>
<jsp:include page="./footer.jsp"></jsp:include>
</body>
</html>

